
const TokenKey = 'Admin-Token'


function getToken() {
  return window.localStorage.getItem(TokenKey)
}

function setToken(token) {
  return window.localStorage.setItem(TokenKey, token)
}

function deleteToken(){
  localStorage.removeItem(TokenKey)
}



// 清空
function clearAllCache() {
  window.localStorage.removeItem(TokenKey)
}

export default { getToken, setToken, deleteToken, clearAllCache }